const size = 375;
function fontRem() {
}
fontRem.install = function () {
    window.onload = () => getRem(size, 100)
    window.onresize = () => getRem(size, 100)
    function getRem(pwidth: number, prem: number) {
        var html = document.getElementsByTagName("html")[0];
        var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
        html.style.fontSize = oWidth / pwidth * prem + "px";
    }
}
export default fontRem